﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAL;
using System.Data;
namespace BLL
{
	public class HANGBAOHIEMBUS
	{
		public static List<HANGBAOHIEM> getAllHBH()
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.getListHBH();
		}
		public static  DataTable getAllHBHs()
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.getListHBHs();
		}


		public static string CreateNewID()
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.CreateNewID();
		}

		public static bool INSERT(HANGBAOHIEM hbhs)
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.INSERT(hbhs);
		}

		public static bool UPDATE(HANGBAOHIEM hbhs)
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.UPDATE(hbhs);
		}

		public static bool DELETE(HANGBAOHIEM hbhs)
		{
			HANGBAOHIEMDAO hbh = new HANGBAOHIEMDAO();
			return hbh.DELETE(hbhs);
		}
	}
}